package com.ecable.delegate;

import java.util.Vector;

import com.ecable.exception.ConnectionException;
import com.ecable.exception.DataNotFoundException;
import com.ecable.exception.LoginException;
import com.ecable.bean.VillageTO;
import com.ecable.serviceI.VillageServiceI;
import com.ecable.serviceImpl.VillageServiceImpl;

public class VillageMgrDelegate {
	
	
	VillageServiceI vsi=new VillageServiceImpl();
	
	
	
	public boolean insertVillage(VillageTO vto)throws LoginException,ConnectionException{
		
		return vsi.insertVillage(vto);
		
	}
	
	public VillageTO  viewVillageAt(int vid1) throws ConnectionException,DataNotFoundException{
		
		
		return vsi.viewVillageAt(vid1);
		
	}
	
	public Vector<VillageTO > viewVillage()throws ConnectionException,DataNotFoundException{
		
		
		return vsi.viewVillage();
		
	}
	
	public boolean deleteVillage(int vid) throws ConnectionException{
		
		
		return vsi.deleteVillage(vid);
	}

	public boolean updateVillage(VillageTO sf)throws ConnectionException{
		
		return vsi.updateVillage(sf);
		
		
	}
	
	public Vector<VillageTO > viewVillage(String sname,String dname,String mname)throws ConnectionException,DataNotFoundException{
		
		return vsi.viewVillage(sname, dname);
	}
public Vector<VillageTO> getVillageName(String dname) throws ConnectionException, DataNotFoundException{
		
		return vsi.getVillageName(dname);
	}

}
